package com.blackhorse.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 纯注解声明式事务控制的配置类
 */
@Configuration
@ComponentScan("com.blackhorse")//spring扫描的包
@Import({JdbcConfig.class, TransactionConfig.class})//载入其他子配置类
@PropertySource("classpath:jdbcConfig.properties")//加载properties文件
@EnableTransactionManagement//开始纯注解下的声明式事务支持
public class SpringConfiguration {
}
